<template>
  <div>
    <el-table :data="tableData" border>
      <el-table-column label="序号" width="50px">
        <template v-slot="{ $index }">
          <div>
            {{ $index + 100}}
          </div>
        </template>
      </el-table-column>
      <el-table-column label="日期" prop="date" sortable></el-table-column>
      <el-table-column label="姓名" prop="name"></el-table-column>
      <el-table-column label="地址" prop="address">
        <!-- <template v-slot="{ row }">
          <div>地址:{{ row.address }}</div>
        </template> -->
      </el-table-column>
      <el-table-column label="操作">
        <template v-slot="{ $index, row }">
          <div>
            <span>{{ $index }}-----------{{ row }}</span>
            <el-button>查看</el-button>
            <el-button>转正</el-button>
          </div>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
data() {
  return {
     tableData: [
        {
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        },
        {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        },
        {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        },
        {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        },
        {
          date: '2016-05-03',
          name: '王小龙',
          address: '上海市普陀区金沙江路 1516 弄'
        }
      ],
    
    
  }
},
}
</script>

<style>

</style>